import request from '@/config/axios'

export interface VideoInfoParseVO {
  id: number
  videoId: number
  accountId: number
  videoPath: string
  audioPath: string
  status: number
  content: string
  remark: string
}

// 查询视频解析列表
export const getVideoInfoParsePage = async (params) => {
  return await request.get({ url: `/beat/video-info-parse/page`, params })
}

// 查询视频解析详情
export const getVideoInfoParse = async (id: number) => {
  return await request.get({ url: `/beat/video-info-parse/get?id=` + id })
}

// 新增视频解析
export const createVideoInfoParse = async (data: VideoInfoParseVO) => {
  return await request.post({ url: `/beat/video-info-parse/create`, data })
}

// 修改视频解析
export const updateVideoInfoParse = async (data: VideoInfoParseVO) => {
  return await request.put({ url: `/beat/video-info-parse/update`, data })
}

// 删除视频解析
export const deleteVideoInfoParse = async (id: number) => {
  return await request.delete({ url: `/beat/video-info-parse/delete?id=` + id })
}

// 导出视频解析 Excel
export const exportVideoInfoParse = async (params) => {
  return await request.download({ url: `/beat/video-info-parse/export-excel`, params })
}
